﻿
<%@ page import="com.claims.Claim" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Claim</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}"><g:message code="menu.home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list">Claim List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Claim</g:link></span>
        </div>
        <div class="body">
            <h1>Show Claim</h1>
						<jdsb:message />
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'id')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Employee:</td>
                            
                            <td valign="top" class="value"><g:link controller="employee" action="show" id="${claimInstance?.employee?.id}">${claimInstance?.employee?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'date')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Clinic:</td>
                            
                            <td valign="top" class="value"><g:link controller="clinic" action="show" id="${claimInstance?.clinic?.id}">${claimInstance?.clinic?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Reason:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'reason')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Status:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'status')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Submitted:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'dateSubmitted')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Verified:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'dateVerified')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Approved:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'dateApproved')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Rejected:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'dateRejected')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Authorize:</td>
                            
                            <td valign="top" class="value"><g:link controller="employee" action="show" id="${claimInstance?.authorize?.id}">${claimInstance?.authorize?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Dependants:</td>
                            
                            <td  valign="top" style="text-align:left;" class="value">
                                <ul>
                                <g:each var="d" in="${claimInstance.dependants}">
                                    <li><g:link controller="dependant" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Submission No:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'submissionNo')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Total Amount:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:claimInstance, field:'totalAmount')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Type:</td>
                            
                            <td valign="top" class="value"><g:link controller="type" action="show" id="${claimInstance?.type?.id}">${claimInstance?.type?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Verify:</td>
                            
                            <td valign="top" class="value"><g:link controller="employee" action="show" id="${claimInstance?.verify?.id}">${claimInstance?.verify?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${claimInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
